import junit.framework.TestCase;


public class TestLiczba extends TestCase {
	Liczba liczba = null;
	protected void setUp() throws Exception {
		liczba = new Liczba();
	}
	
	public void testZamiana() {
		String expected = "10100";
		assertEquals(expected, liczba.zamiana(20, 2));
		
		expected = "100000000";
		assertEquals(expected, liczba.zamiana(256, 2));
		
		expected = "6EFC";
		assertEquals(expected, liczba.zamiana(28412, 16));
		
		expected = "100";
		assertEquals(expected, liczba.zamiana(4, 2));
	}

}
